package io.renren.modules.basic.service.impl;

import io.renren.modules.basic.dao.MtCcWarehousRegionDao;
import io.renren.modules.basic.entity.MtCcWarehousRegionEntity;
import io.renren.modules.basic.service.MtCcWarehousRegionService;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;


@Service("mtCcWarehousRegionService")
public class MtCcWarehousRegionServiceImpl extends ServiceImpl<MtCcWarehousRegionDao, MtCcWarehousRegionEntity> implements MtCcWarehousRegionService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MtCcWarehousRegionEntity> page = this.page(
                new Query<MtCcWarehousRegionEntity>().getPage(params),
                new QueryWrapper<MtCcWarehousRegionEntity>()
        );

        return new PageUtils(page);
    }

}